package listeners;

import java.util.TimerTask;

import javax.jms.Message;
import javax.jms.MessageListener;

/**
 * This class is responsible for:
 * <ol>
 * 	<li>adding the user to a group:
 * 	<ol>	
 * 		<li>If we are in the margin of 30 seconds we try to add if not exists 
 * 			to personsInGroup and userInGroup
 * 	</ol>
 * 	</li>
 * </ol>
 * 
 * @author Ron Galay
 * message types:
 * 	"Alive-"<username> - I'm alive message
 * 	"Joined-"<username> - join request, send back "Alive-"<username>
 * 	"Leave-"<username> - Leave request, delete user from group.
 */
public class Control implements MessageListener{
	
	
	private String group;

	public Control(String group)
	{
		this.group=group;
	}
	
	@Override
	public void onMessage(Message arg0) {
		// TODO Auto-generated method stub
		
	}
	

}
